@import 'normalize.css';
@import 'font-awesome.min.css';

/* color */

$colorblue: #02335b; //深蓝
$colorgreen: #95d800; //绿色
$colorred: #cc3333; //红色
$colorgray: #cccccc; //灰色
$colorgroup1:#c8fbac;
$colorgroup2:#73d290;
$colorgroup3:#7ed7f5;
$colorgroup4:#f7d25f;
$colorgroup5:#91c6fa;
$colorgroup6:#81e8a1;
$colorgroup7:#74aeee;

/* clearfloat */

%clearfloat {
  *zoom: 1;
  &:after {
    content: "";
    clear: both;
    display: block;
    height: 0;
    visibility: hidden;
  }
}


/* oneline */

%oneline {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* -------------custom style starting------------- */

%boxshadow1 {
  box-shadow: 1px 1px 3px rgba(black, .3);
}

%boxshadow2 {
  box-shadow: 1px 1px 3px rgba(black, .6);
}

%textshadow {
  text-shadow: 0 -1px 1px rgba(black, .3);
}

%borderradius {
  border-radius: .25em;
}

%fontyahei {
  font-family: "Microsoft Yahei";
}

%fontsongti {
  font-family: "宋体";
}

%fontkaiti {
  font-family: "楷体";
}

%fontheiti {
  font-family: "黑体";
}

%fontfangsong {
  font-family: "仿宋";
}


/* -------------custom style ending------------- */

a {
  outline: none!important;
}


/* background img */

body {
  background: url(../img/backgroundimg.jpg) center top no-repeat;
  background-attachment: fixed;
  background-size: cover;
}


/* header 头部 */

header {
  height: 62px;
  background-color: white;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  right: 0;
  @extend %boxshadow1;
  .lib {
    //width: 50%;
    display: inline-block;
    .libicon {
      width: 60px;
      height: 40px;
      background: $colorblue url(../img/libraryicon.png) center 5px no-repeat;
      background-size: 24px;
      display: inline-block;
      position: absolute;
      left: 0;
      top: 0;
      &:hover {
        background-color: $colorgreen;
        &:after {
          border: 30px solid $colorgreen;
          border-bottom-color: transparent;
        }
      }
      &:after {
        content: "";
        display: inline-block;
        border: 30px solid $colorblue;
        border-bottom-color: transparent;
        position: absolute;
        bottom: -60px;
      }
    }
    .libname {
      margin: 0;
      width: 80%;
      @extend %oneline;
      display: inline-block;
      font-size: 20px;
      position: absolute;
      left: 65px;
      line-height: 1.2;
      color: $colorblue;
      top: 0;
      @extend %fontyahei;
    }
  }
  .menu-msg {
    //width: 50%;
    display: inline-block;
    position: absolute;
    right: 0;
    text-align: right;
    .menu {
      .loginbutton,
      .nav,
      .cslnnet,
      .login {
        display: inline-block;
      }
      .loginbutton {
        margin: 0;
        padding: 0;
      }
      .nav {
        list-style: none;
        margin: 0;
        padding: 0;
        position: relative;
        top: -16px;
        li {
          min-width: 110px;
          float: left;
          font-size: 14px;
          text-align: center;
          cursor: pointer;
          position: relative;
          @extend %fontyahei;
          &:hover {
            color: $colorgreen;
            .subnav {
              opacity: 1;
              padding: 10px 0;
              overflow: auto;
              height: auto;
              border: 1px solid $colorgreen;
              transition: all .2s linear;
            }
            .loginbutton {
              &:after {
                border: 4px solid transparent;
                border-top-color: $colorgreen;
              }
            }
          }
        }
        li + li {
          border-left: 1px solid $colorgray;
        }
        .login {
          margin-right: 20px;
        }
        .loginbutton {
          position: relative;
          &:after {
            content: "";
            display: inline-block;
            border: 4px solid transparent;
            border-top-color: $colorblue;
            margin-left: 5px;
          }
        }
        .patronname,
        .exit {
          text-decoration: none;
          color: $colorblue;
          &:hover {
            color: $colorgreen;
          }
        }
        .exit {
          margin-left: 20px;
        }
      }
      .subnav {
        position: absolute;
        background-color: rgba($colorblue, .7);
        @extend %borderradius;
        @extend %boxshadow1;
        opacity: 0;
        padding: 0;
        overflow: hidden;
        height: 0;
        border: none;
        .subnav-item {
          display: inline-block; //min-width:100px;
          width: 100%;
          color: white;
          text-decoration: none; //text-align: left;
          font-size: 12px;
          box-sizing: border-box;
          padding: 8px 0;
          @extend %textshadow;
          &:hover {
            color: $colorgreen;
          }
        }
      }
      .cslnnet {
        font-size: 0;
        img {
          height: 62px;
        }
      }
    }
  }
  .msg {
    font-size: 10px;
    margin-top: 29px;
    margin-left: 65px;
    color: gray; //margin-right: 10px;
    span + span {
      margin-left: 10px;
    }
    em {
      font-style: normal;
      color: $colorred;
    }
  }
}


/* login */

.loginwindow {
  animation: testanimation2s 1s !important;
  @keyframes testanimation2s {
    0% {
      transform: rotateY(90deg);
    }
    100% {
      transform: rotateY(0deg);
    }
  }
  $width: 300px;
  width: $width + 4;
  position: fixed;
  left: 50%;
  margin-left: - ($width / 2);
  top: 20%;
  display: none;
  z-index: 9999;
  border: 2px solid $colorgreen;
  box-sizing: border-box;
  cursor: default; //@extend %boxshadow1;
  box-shadow: 1px 1px 3px rgba(black, .3);
  animation: testanimations .1s;
  @keyframes testanimations {
    0% {
      transform: translateY(15px);
    }
    100% {
      transform: translateY(0);
    }
  }
  .login-close {
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: white;
    border: 2px solid $colorgreen;
    line-height: 22px;
    font-size: 14px;
    text-align: center;
    right: -22px;
    top: -22px;
    border-radius: .25em;
    color: $colorblue;
    cursor: pointer;
    font-family: "Microsoft Yahei";
    &:hover {
      color: $colorred;
    }
  }
}


/* err-msg 错误信息 */

.err-msg {
  color: red;
  font-size: 15px;
  text-align: center;
  @extend %fontyahei; //font-weight: bold;
}


/* searchbook-index 首页基础图书检索 */

.booksearch-index {
  $width: 80%;
  width: $width;
  margin: 10px auto;
  background-image: linear-gradient(to top, $colorblue, rgba($colorblue, .7));
  filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr=#02335b, endColorstr=#02335b);
  padding: 20px 4%;
  box-sizing: border-box;
  @extend %boxshadow2;
  @extend %borderradius;
  .formfloat {
    text-align: center;
  }
  select,
  input,
  a,
  span {
    display: inline-block;
    @extend %fontyahei;
    @extend %borderradius;
    outline: none;
    padding: 5px 1%;
    border: none;
    box-sizing: border-box;
    font-size: 14px;
  } //  select {
  //    margin-right: 3%;
  //    width: 15%;
  //    &:nth-of-type(2) {
  //      margin-left: 1%;
  //    }
  //  }
  input {
    width: 70%;
  }
  a {
    width: 20%;
    text-align: center;
    text-decoration: none;
    background-color: $colorgreen;
    color: white;
    margin-left: 3%;
  }
  span {
    width: 14%;
    color: white; //font-size: 1.1em;
  }
}


/* patron-menu 读者多彩菜单 */

.patron-menu {
  @extend %clearfloat;
  text-align: right;
  margin-top: 72px;
  .patron-menu-item {
    position: relative;
    display: inline-block;
    height: 50px;
    width: 100px; //float: left;
    overflow: hidden;
    @extend %borderradius;
    background-size: 24px!important;
    opacity: .8;
    transition: all .3s ease-in-out;
    &:hover {
      box-shadow: 0 0 5px rgba($colorgreen, 1);
      background-position: center 20px !important;
      transition: all .3s linear;
      opacity: 1;
      p {
        //transform: rotateY(360deg);
        bottom: 30px;
      }
    }
    &:nth-of-type(1) {
      background: $colorgroup1 url(../img/usercenter1.png) center 5px no-repeat;
    }
    &:nth-of-type(2) {
      background: $colorgroup2 url(../img/usercenter2.png) center 5px no-repeat;
    }
    &:nth-of-type(3) {
      background: $colorgroup3 url(../img/usercenter3.png) center 5px no-repeat;
    }
    &:nth-of-type(4) {
      background: $colorgroup4 url(../img/usercenter4.png) center 5px no-repeat;
    }
    &:nth-of-type(5) {
      background: $colorgroup5 url(../img/usercenter5.png) center 5px no-repeat;
    }
    &:nth-of-type(6) {
      background: $colorgroup6 url(../img/usercenter6.png) center 5px no-repeat;
    }
    &:nth-of-type(7) {
      background: $colorgroup7 url(../img/usercenter7.png) center 5px no-repeat;
    }
    p {
      margin: 0;
      padding: 0;
      position: absolute;
      left: 0;
      right: 0;
      bottom: 5px;
      font-size: 10px;
      text-align: center;
      @extend %fontyahei;
      @extend %oneline;
      color: $colorblue;
      transition: all .3s ease-in-out;
    }
  } //  .message-count {
  //    color: white;
  //    text-decoration: none;
  //    display: inline-block;
  //    position: absolute;
  //    right: 20%;
  //    top: 10%;
  //    width: 20px;
  //    text-align: center;
  //    background-color: $colorred;
  //    border-radius: 100%;
  //    font-size: 12px;
  //    padding: 2px 0;
  //  }
  .patron-menu-item + .patron-menu-item {
    //margin-left: 1.5%;
  }
}


/* quicklinks 快速链接 */

.quicklinks {
  position: fixed;
  z-index: 9997;
  left: 0;
  top: 110px;
  &:hover {
    .linknav {
      display: block;
    }
  }
  .headline {
    @extend %fontyahei;
    width: 30px;
    padding: 10px 7px 30px 7px;
    background-color: white;
    font-size: 14px;
    color: $colorblue;
    cursor: pointer;
    border: 1px solid rgba($colorblue, .3);
    @extend %boxshadow1;
    &:after {
      content: "";
      display: inline-block;
      width: 0;
      height: 0;
      border: 4px solid transparent;
      border-left-color: $colorblue;
      position: absolute;
      left: 12px;
      top: 94px;
    }
  }
  .linknav {
    //display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: white;
    border: 1px solid rgba($colorblue, .3);
    position: absolute;
    top: 0;
    left: 29px;
    transition: all .3s;
    display: none;
    @extend %boxshadow1;
    .links {
      a {
        display: block;
        padding: 5px;
        @extend %oneline;
        text-decoration: none;
        color: $colorblue;
        font-size: 12px;
        @extend %fontyahei;
        &:hover {
          background-color: rgba($colorgreen, .5);
        }
      }
    }
    .links + .links {
      border-top: 1px solid rgba($colorblue, .3);
    }
  }
}


/* 右侧边栏菜单 */

.sidebar {
  position: fixed;
  z-index: 9997;
  right: 0;
  bottom: 20%;
  .sidebar-weixin,
  .sidebar-top {
    width: 40px;
    height: 40px;
    background-color: white;
    box-sizing: border-box; //
    cursor: pointer;
    &:hover {
      .icon {
        transform: translateY(-40px);
      }
      .font {
        transform: translateY(-40px);
      }
      .weichatcode {
        transform: scale(1);
      }
    }
    .fonticon {
      width: 40px;
      height: 40px;
      overflow: hidden;
      border: 1px solid rgba($colorblue, .3);
    }
    .icon {
      width: 40px;
      height: 40px;
      transition: all .3s;
    }
    .font {
      //display: table-cell;
      font-size: 12px;
      @extend %fontyahei;
      text-align: center;
      width: 40px;
      height: 40px;
      padding-top: 3px;
      transition: all .3s;
      background-color: $colorgray;
      color: rgba($colorblue, .7);
    }
  }
  .sidebar-weixin {
    position: relative;
    .icon {
      background: url(../img/weixin.png) center center no-repeat;
      background-size: 26px;
      opacity: .5;
    }
    .weichatcode {
      background-color: white;
      position: absolute;
      right: 39px;
      border: 1px solid rgba($colorblue, .3);
      bottom: 0;
      width: 100px;
      font-size: 0;
      transform: scale(0);
      transform-origin: right bottom;
      transition: all .3s;
      img {
        width: 100%;
      }
      p {
        font-size: 10px;
        text-align: center;
        margin: 0;
        padding: 0;
      }
    }
  }
  .sidebar-top {
    margin-top: 2px;
    .icon {
      background: url(../img/totop.png) center center no-repeat;
      background-size: 26px;
      opacity: .5;
    }
  }
}


/* footer 页脚 */

footer {
  width: 100%;
  background-color: $colorblue;
  box-sizing: border-box;
  padding: 15px 0;
  .copyright,
  .totalview {
    text-align: center;
  }
  .copyright {
    color: white;
    font-size: 12px;
  }
  .totalview {
    color: white;
    font-size: 12px;
    padding-top: 5px;
  }
}


/* page 翻页组件样式 */

.page {
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  .page-prev,
  .page-current,
  .page-button,
  .page-break,
  .page-next {
    text-decoration: none;
    display: inline-block;
    padding: 5px 10px;
    background-color: #f7f7f7;
    background-image: linear-gradient(top, #f7f7f7, #f2f2f2);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f7f7f7', endColorstr='#f2f2f2', GradientType=0);
    @extend %fontyahei;
    color: $colorblue;
    box-sizing: border-box;
    border: 1px solid #ddd;
    @extend %borderradius;
  }
  .page-prev {
    &:before {
      content: "<";
    }
  }
  .page-next {
    &:after {
      content: ">";
    }
  }
  .page-current,
  .page-break {
    cursor: default;
    background: none;
    filter: none;
    border: none;
  }
  .disable {
    cursor: default;
    background: none;
    filter: none;
    opacity: .7;
  }
  .page-num {
    display: block;
  }
  .page-count {
    @extend %fontyahei;
    em {
      font-style: normal;
      font-weight: bold;
    }
  }
}


/* 主体 */

.wrapper {
  //padding: 10px;
  //margin-top: 20px;
  box-sizing: border-box;
  padding: 0 20px;
}

.container {
  $width: 380px;
  overflow: hidden;
  .leftframe,
  .rightframe {
    box-sizing: border-box;
    padding: 10px;
    float: left;
  }
  /* 左边框架通用 */
  .leftframe {
    width: $width; //    background-color:red;
    .frame {
      border: 1px solid rgba($colorblue, .3);
    }
    /* 左边news的独有样式 */
    .news,
    .activity,
    .libshow {
      height: 250px;
    }
  }
  /* 右边框架通用 */
  .rightframe {
    width: 100%;
    margin-right: - $width; //    background-color:lightblue;
    .content {
      margin-right: $width;
    }
    .frame {
      border: 1px solid rgba($colorgreen, .3);
      overflow-y: auto;
    }
    .editor {
      float: right;
      a {
        display: inline-block;
        font-size: 16px;
        font-weight: bold;
        text-decoration: none;
        color: $colorblue;
        @extend %fontyahei;
        padding-top: 2px;
        &:before {
          content: "";
          display: inline-block;
          background: url(../img/editor-icon.png) center center no-repeat;
          background-size: 14px;
          margin-bottom: -2px;
          width: 20px;
          height: 16px;
        }
        &:hover {
          color: $colorgreen;
        }
      }
    }
  }
  /* 框架通用 */
  .frame {
    box-sizing: border-box;
    @extend %boxshadow1;
    @extend %borderradius;
    background-color: rgba(white, .7);
    padding: 15px 10px;
    margin-bottom: 20px;
    .framename {
      @extend %clearfloat;
      margin-bottom: 10px;
    }
    h2,
    .more {
      //float: left;
    }
    h2 {
      margin: 0;
      padding: 0;
      padding-left: 26px;
      @extend %fontyahei;
      font-size: 18px;
      color: $colorblue;
      float: left;
    }
    .more {
      float: right;
      a {
        display: inline-block;
        font-size: 16px;
        font-weight: bold;
        text-decoration: none;
        color: $colorblue;
        @extend %fontyahei;
        padding-top: 2px;
        &:hover {
          color: $colorgreen;
        }
      }
    }
    .section {
      a {
        text-decoration: none;
      }
    }
  }
  .general {
    h2 {
      background: url(../img/general.png) left center no-repeat;
      background-size: 20px;
    }
  }
  /* news 本馆新闻 私有 */
  .news,
  .activity,
  .libshow {
    overflow: hidden;
    h2 {
      background: url(../img/news.png) left center no-repeat;
      background-size: 20px;
    }
    .section {
      .news-item {
        color: $colorblue;
        font-size: 14px;
        @extend %fontyahei;
        &:hover {
          color: orangered;
        }
        h3,
        .date {
          display: inline-block;
          margin: 0;
          padding: 0;
          font-size: 14px;
          @extend %oneline;
          font-weight: normal;
        }
        h3 {
          width: 72%;
        }
        .date {
          width: 28%;
          text-align: right;
        }
      }
    }
  }
  /* 本馆活动 */
  .activity {
    h2 {
      background: url(../img/activity.png) left center no-repeat;
      background-size: 20px;
    }
  }
  /* 本馆展示 */
  .libshow {
    h2 {
      background: url(../img/libshow.png) left center no-repeat;
      background-size: 20px;
    }
  }
  /* news-article 本馆新闻文章 私有 */
  .news-article {
    overflow: hidden;
    h2 {
      background: url(../img/news.png) left center no-repeat;
      background-size: 20px;
    }
    .news-title {
      @extend %fontyahei;
      color: $colorblue;
      h3 {
        font-size: 16px;
        margin: 0;
      }
      span {
        font-size: 12px;
        display: block;
        border-bottom: 1px solid $colorgray;
      }
      em {
        font-style: normal;
        padding-left: 10px;
      }
    }
    .news-content {
      margin: 15px 0;
      img {
        max-width: 100%;
      }
    }
  }
  /* activity-article 本馆活动私有 */
  .activity-article {
    overflow: hidden;
    h2 {
      background: url(../img/activity.png) left center no-repeat;
      background-size: 20px;
    }
    .news-title {
      @extend %fontyahei;
      color: $colorblue;
      border-bottom: 1px solid $colorgray;
      h3 {
        font-size: 16px;
        margin: 0;
      }
      span {
        font-size: 14px;
        display: inline-block;
        padding-right: 20px; //border-bottom: 1px solid $colorgray;
      }
      em {
        font-style: normal;
        padding-left: 10px;
        font-weight: bold;
      }
    }
    .news-content {
      margin: 15px 0;
      img {
        max-width: 100%;
      }
    }
  }
  /* libshow-article 本馆展览私有 */
  .libshow-article {
    overflow: hidden;
    h2 {
      background: url(../img/libshow.png) left center no-repeat;
      background-size: 20px;
    }
    .news-title {
      @extend %fontyahei;
      color: $colorblue;
      border-bottom: 1px solid $colorgray;
      h3 {
        font-size: 16px;
        margin: 0;
      }
      span {
        font-size: 14px;
        display: inline-block;
        padding-right: 20px; //border-bottom: 1px solid $colorgray;
      }
      em {
        font-style: normal;
        padding-left: 10px;
        font-weight: bold;
      }
    }
    .news-content {
      margin: 15px 0;
      img {
        max-width: 100%;
      }
    }
  }
  /* 本馆简介 introduce 私有 */
  .introduce {
    h2 {
      background: url(../img/introduceicon.png) left center no-repeat;
      background-size: 20px;
    }
    .section {
      img {
        max-width: 100%;
      }
    }
  }
  /* 左侧新书推荐私有 */
  .newbooks {
    h2 {
      background: url(../img/newbookicon.png) left center no-repeat;
      background-size: 20px;
    }
    .section {
      max-height: 600px;
      overflow-y: auto;
      scrollbar-base-color: $colorgray;
      &::-webkit-scrollbar {
        width: 10px;
      }
      &::-webkit-scrollbar-track {
        -webkit-box-shadow: inset006pxrgba(0, 0, 0, 0.3);
        border-radius: 10px;
      }
      /* 滚动条滑块 */
      &::-webkit-scrollbar-thumb {
        border-radius: 10px;
        background: rgba(0, 0, 0, 0.1);
        -webkit-box-shadow: inset006pxrgba(0, 0, 0, 0.5);
      }
    }
    .newbooks-item {
      display: table;
      width: 100%;
      padding: 15px 0;
      &:hover {
        background-color: rgba($colorgreen, .1);
        transition: all .1s linear;
      }
      img,
      span {
        display: table-cell;
        vertical-align: middle;
        padding: 10px;
        box-sizing: border-box;
      }
      img {
        width: 80px; //margin-right: 15px;
      }
      span {
        width: 100%;
        font-size: 15px;
        color: $colorblue;
        @extend %fontkaiti;
      }
    }
    .newbooks-item + .newbooks-item {
      border-top: 1px solid $colorgray;
    }
  }
  /* 右侧新书推荐details */
  .newbooks-details {
    h2 {
      background: url(../img/newbookicon.png) left center no-repeat;
      background-size: 20px;
    }
    .section {
      padding: 10px;
      .newbooks-details-one {
        margin-top: 20px;
        border-bottom: 1px solid $colorgray;
        width: 100%;
        tr:first-child {
          td:first-child {
            font-size: 0;
            width: 160px; //padding: 10px;
            //vertical-align: top;
            text-align: left;
            img {
              width: 100%;
            }
          }
        }
        tr:first-child td:nth-child(2),
        tr:nth-child(2) td:first-child,
        tr:nth-child(3) td:first-child,
        tr:nth-child(4) td:first-child,
        tr:nth-child(5) td:first-child,
        tr:nth-child(6) td:first-child,
        tr:nth-child(7) td:first-child,
        tr:nth-child(8) td:first-child,
        tr:nth-child(9) td:first-child,
        tr:nth-child(10) td:first-child {
          @extend %fontkaiti;
          width: 110px;
          font-size: 16px;
          padding-left: 20px;
        }
        tr:first-child td:nth-child(3),
        tr:nth-child(2) td:nth-child(2),
        tr:nth-child(3) td:nth-child(2),
        tr:nth-child(4) td:nth-child(2),
        tr:nth-child(5) td:nth-child(2),
        tr:nth-child(6) td:nth-child(2),
        tr:nth-child(7) td:nth-child(2),
        tr:nth-child(8) td:nth-child(2),
        tr:nth-child(9) td:nth-child(2) {
          //@extend %fontkaiti;
          //width:90px;
          font-size: 14px;
          padding: 5px 0;
        }
        tr:nth-child(10) td {
          text-align: center;
        }
        tr:nth-child(11) td {
          padding: 10px;
        }
        tr:nth-child(12) td {
          text-align: center;
          padding-bottom: 20px;
        }
      }
    }
  }
  /* 右侧读者信息 */
  .patroninfo {
    h2 {
      background: url(../img/usercenter1.png) left center no-repeat;
      background-size: 20px;
    }
    .patroninfo-button {
      padding: 10px 0;
      text-align: center;
      a + a {
        margin-left: 20px;
      }
    }
    .patroninfo-change {
      .patroninfo-info,
      .patroninfo-password {
        display: none;
      }
    }
  }
  /* 右侧未还图书/续借 */
  .noreturn {
    h2 {
      background: url(../img/usercenter2.png) left center no-repeat;
      background-size: 20px;
    }
  }
  /* 右侧全部借还书记录 */
  .record {
    h2 {
      background: url(../img/usercenter3.png) left center no-repeat;
      background-size: 20px;
    }
  }
  /* 赔款记录 */
  .payment {
    h2 {
      background: url(../img/usercenter4.png) left center no-repeat;
      background-size: 20px;
    }
  }
  /* 预约图书 */
  .order {
    h2 {
      background: url(../img/usercenter5.png) left center no-repeat;
      background-size: 20px;
    }
  }
  /* 二维码绑定 */
  .codebinding {
    h2 {
      background: url(../img/usercenter6.png) left center no-repeat;
      background-size: 20px;
    }
  }
  /* 馆藏查询 */
  .booksearch-complex {
    h2 {
      background: url(../img/guancangchaxun.png) left center no-repeat;
      background-size: 20px;
    }
  }
}

///* 高级馆藏查询 */
//
//.booksearch-advanced {
//  width: 700px;
//  margin: 0 auto;
//  background-color: #fafafa;
//  padding: 5px;
//  @extend %boxshadow1;
//  border-radius: 2px;
//  border: 1px solid rgba($colorblue, .3);
//  input,
//  option,
//  select,
//  form {
//    @extend %fontyahei;
//    font-size: 12px;
//  }
//  select,
//  input {
//    outline: none;
//    border: 1px solid rgba($colorblue, .3);
//    box-sizing: border-box;
//  }
//  input {
//    padding: 2px;
//  }
//  select {
//    cursor: pointer;
//    padding: 2px;
//    color: $colorblue;
//  }
//  button {
//    //@extend %button;
//    &:last-child {
//      margin-right: 0;
//    }
//  }
//  p {
//    &:nth-of-type(1) {
//      select {
//        width: 100%;
//      }
//    }
//    &:nth-of-type(2) {
//      //display: flex;
//      //justify-content: space-around;
//      select:first-child {
//        width: 130px;
//      }
//      select:last-child {}
//      input {
//        margin: 0 20px;
//        width: 430px;
//      }
//    }
//    &:nth-of-type(3),
//    &:nth-of-type(4),
//    &:nth-of-type(5) {
//      select {
//        flex: 1;
//        &:nth-of-type(2) {
//          margin-left: 10px;
//        }
//      }
//      input {
//        //flex: 3.5;
//        margin: 0 20px;
//        width: 430px;
//      }
//    }
//    &:nth-of-type(6) {
//      //display: flex;
//      //justify-content: space-between;
//      margin-top: 10px;
//      padding-top: 10px;
//      border-top: 1px dashed rgba($colorblue, .3);
//      label {
//        display: inline-block;
//      }
//      input[type="checkbox"] {
//        width: 21px;
//        height: 21px;
//        vertical-align: -5px;
//      }
//    }
//    &:nth-of-type(7) {
//      display: flex;
//      justify-content: flex-end;
//    }
//  }
//}
//
//.searchlog {
//  display: flex;
//  flex-flow: row wrap;
//  border-top: 1px solid rgba($colorblue, .3);
//  margin-top: 20px;
//  span {
//    color: $colorblue;
//    display: inline-block;
//    margin: 5px;
//  }
//  a {
//    margin: 5px;
//    color: $colorblue;
//    display: inline-block;
//    &:hover {
//      color: $colorgreen;
//    }
//  }
//}
/* 评论 comments 模块 */

.comments {
  border: 1px solid #ccc;
  .comments-header {
    text-align: center; //background:linear-gradient(bottom,rgba($colorblue,.5),rgba($colorblue,.1));
    background-color: #f7f7f7;
    background-image: linear-gradient(top, #f7f7f7, #f2f2f2);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f7f7f7', endColorstr='#f2f2f2', GradientType=0);
    border-bottom: 1px solid #ccc;
    font-size: 14px;
    @extend %fontyahei;
    padding: 5px 0;
  }
  .comments-list {
    border-bottom: 1px dotted #ccc;
    margin: 10px 0;
    font-size: 12px;
    width: 100%;
    td {
      padding: 5px;
    }
    tr {
      td:first-child {
        width: 200px;
      }
      td:nth-child(2) {
        vertical-align: top;
      }
    }
  }
  .page {
    margin: 20px 0;
  }
  .comments-add {
    font-size: 13px;
    p {
      margin: 5px 0;
    }
    p:first-child {
      text-align: center; //background:linear-gradient(bottom,rgba($colorblue,.5),rgba($colorblue,.1));
      background-color: #f7f7f7;
      background-image: linear-gradient(top, #f7f7f7, #f2f2f2);
      filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f7f7f7', endColorstr='#f2f2f2', GradientType=0);
      border-bottom: 1px solid #ccc;
      border-top: 1px solid #ccc;
      font-size: 14px;
      @extend %fontyahei;
      padding: 5px 0;
    }
    p:nth-last-of-type(2) {}
    p:last-child {
      text-align: center;
    }
    input {
      outline: none;
    }
    textarea {
      resize: none;
      width: 80%;
      height: 80px;
      outline: none; //overflow: auto;
    }
  }
}


/* 参加活动模块 */

.joinactivity {
  margin: 10px 0;
  text-align: center; //border: 1px solid #ccc;
  .counts {
    text-align: center; //background:linear-gradient(bottom,rgba($colorblue,.5),rgba($colorblue,.1));
    //background-color: #f7f7f7;
    //background-image: linear-gradient(top, #f7f7f7, #f2f2f2);
    //filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f7f7f7', endColorstr='#f2f2f2', GradientType=0);
    //border-bottom: 1px solid #ccc;
    font-size: 14px;
    @extend %fontyahei;
    padding: 5px 0;
  }
  .weichatcode,
  .joincode {
    display: inline-block;
    width: 100px;
    height: 100px;
    padding: 0 40px;
    margin-top: 10px;
    box-sizing: content-box; //border:1px solid $colorgray;
    img {
      width: 100%;
    }
  }
  p {
    @extend %fontyahei;
    font-size: 12px;
    width: 40%;
    margin: 10px auto;
    text-align: left;
    text-indent: 2em;
    color: $colorblue;
  }
  .weichatcode {
    border-right: 1px solid $colorgray;
  }
  .joincode {}
}


/* 点赞模块 */

.article-metal {
  text-align: center;
  @extend %fontyahei;
  font-size: 14px;
  background-color: rgba(#F8F8F8, 1);
  .zan,
  .views,
  .commentssum {
    display: inline-block;
    color: black;
    padding: 0 15px;
  }
  .views {
    border-left: 1px solid rgba(224, 224, 224, 1);
    border-right: 1px solid rgba(224, 224, 224, 1);
  }
  .icon-thumbs-up {
    color: rgba(10, 134, 205, 1);
  }
  .icon-eye-open {
    color: rgba(139, 216, 149, 1);
  }
  .icon-comment {
    color: rgba(228, 174, 174, 1);
  }
}


/* loading组件 */

.loading {
  width: 48px;
  height: 48px;
  position: fixed;
  left: 50%;
  margin-left: 165px;
  top: 40%;
  background: url(../img/loading.png) center center no-repeat;
  background-size: 48px;
  animation: loadingani .8s linear infinite;
}

@keyframes loadingani {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}


/* 按钮样式集合 */

.button-normal,
.button-renew,
.button-cancelorder {
  font-size: 14px;
  @extend %fontyahei;
  display: inline-block;
  color: $colorblue;
  padding: 5px 30px; //font-weight: bold;
  background-color: #f7f7f7;
  background-image: linear-gradient(top, #f7f7f7, #f2f2f2);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f7f7f7', endColorstr='#f2f2f2', GradientType=0);
  border: 1px solid #ddd;
  text-decoration: none;
  &:active {
    box-shadow: 1px 1px 2px rgba(black, .3) inset;
  }
}

.button-renew,
.button-cancelorder {
  border-radius: 10px;
  padding: 0 10px;
}

.disable {
  opacity: .4;
  cursor: default;
  &:active {
    box-shadow: none;
  }
}


/* 表格 */

.table-normal {
  width: 100%;
  font-size: 13px;
  th {
    text-align: left;
    background-color: #dae9f8;
  }
  td,
  th {
    padding: 3px;
    border: 1px solid #dfdfdf;
  }
}


/* 读者信息表格 */

.table-patroninfo {
  td:nth-child(odd) {
    background-color: #dae9f8;
    font-weight: bold;
    width: 120px;
  }
  input {
    //width:80%;
  }
}


/* 未还图书 */

/* 文字颜色 */

.fontred {
  color: $colorred;
}
